package com.wangzifan.mapper;

import com.wangzifan.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MenuMapper {
    @Select("select * from menu,user where menu.role=user.role and user.username=#{username}")
    List<Menu> getMenus(String username);
}
